<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
	xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="../static/azxcrm/css/salesman.css"
	th:href="@{/azxcrm/css/salesman.css}" rel="stylesheet" />
<body>
<div class="g-salesman">
    <!-- 头部结构 -->
    <div class="add_order clearfix">
        <div class="addorder_left clearfix">派单</div>
    </div>
     <!-- 头部结构 -->

    <div class="g-item-details">
        <p class="g-text"><span class="s-numbers" th:text="'订单号：'+${order.orderNum}">
        </span><span class="s-type" th:text="'订单类型：'+${order.typeName}"></span></p>
    </div>

    <div class="g-tab-list">				
      
        <div id="myTabContent" class="tab-content">              
            <div class="tab-pane fade in active" id="s-tab-1">
                 <!--客户信息-->
                <div class="g-customer-info">
                    <h3 class="pos-rel">客户信息</h3>
                    <ul class="clearfix">
                        <li class="s-name">
	                        <p class="s-p">
	                          <span>客户姓名：</span><span th:text="${customerClue.customerName}"></span>
	                        </p>
	                        <p class="s-p">
		                      <span>客户性别：</span>
		                      <span th:if="${customerClue.customerSex} == 0">未知</span>
							  <span th:if="${customerClue.customerSex} == 1">男</span>
							  <span th:if="${customerClue.customerSex} == 2">女</span>
							</p>
                        </li>
                        <li class="s-name">
	                        <p class="s-p">
	                          <span>客户年龄：</span><span th:text="${customerClue.customerAge}"></span>
	                        </p>
                            <p class="s-p">
                              <span>居住地址：</span><span class="location" th:text="${customerClue.customerProvince} == 请选择  ?'':${customerClue.customerProvince}+'-'+${customerClue.customerCity}+'-'+${customerClue.customerArea}+'-'+${customerClue.customerAddressDetail}"></span>
                            </p>
                        </li>
                    </ul>
                </div>
                <!--客户意向-->
                <div class="g-customer-info2">
                    <h3 class="pos-rel">客户意向</h3>
                    <ul class="clearfix">
                        <li th:if="${customerClue.occupancyType} != 0"><span>入住类型：</span>
						<span th:if="${customerClue.occupancyType} == 1">长住</span>
						<span th:if="${customerClue.occupancyType} == 2">短住</span></li>
                        <li th:if="${customerClue.tourismScale} != 0"><span>参加人数：</span><span th:text="${customerClue.tourismScale} == 0?非本类型线索:${customerClue.tourismScale}"></span></li>
                        <li th:if="${customerClue.tourismRoute} != ''"><span>旅游路线：</span><span th:text="${customerClue.tourismRoute} == '' ? 非本类型线索 : ${customerClue.tourismRoute}"></span></li>
                        <li th:if="${customerClue.recureProject} != ''"><span>康复项目：</span><span th:text="${customerClue.recureProject} == '' ? 非本类型线索 : ${customerClue.recureProject}"></span></li>		                		
                    </ul>
                </div>
                <!--客服信息-->					
                <div class="g-service-info">
                    <h3 class="pos-rel">客服信息</h3>
                    <ul class="clearfix">
                        <li><span>专属客服：</span><span th:text="${user.loginName}"></span></li>
                        <li><span>联系电话</span><span th:text="${user.phonenumber}"></span></li>                		                		
                    </ul>
                    <p class="g-proposal"><span class="g-suggest">客服建议:</span><span class="g-proposal-data" th:text="${communication.suggestion}"></span></p>
                </div>
            </div> 

            <div class="g-product">
                <h3 class="pos-rel">产品信息</h3>
                <form role="form" class="clearfix" id="form-dispatchSalesmanDetails-add">
                    <div class="form-group">
                        <label class="label_intention" for="">选择业务员进行跟单：</label>
                        <select name="userId" class="cms-form-select label_select">
                            <option disabled="disabled" value="请选择产品类型" selected="selected">请选择业务员</option>
                            <option th:each="urList : ${ur}"
							th:value="${urList.userId}"
							th:text="${urList.loginName}+'('+${urList.phonenumber}+')'"></option>
                        </select>
                    </div>
                    <input th:value="${order.orderId}" type="hidden" name="orderId" id="orderId">
                    <div class="btn-group">
		                <input type="submit" th:value="确认派单给该业务员" class="btn btn-warning dropdown-toggle">
		            </div>
                </form>
            </div>
        </div>  
    </div>
</div>
<div th:include="include::footer"></div>
	<!-- 操作处理 -->
	<script src="/js/jquery-ui-1.10.4.min.js"
		th:src="@{/js/jquery-ui-1.10.4.min.js}"></script>
	<script src="/ajax/libs//datapicker/bootstrap-datepicker.js"
		th:src="@{/ajax/libs//datapicker/bootstrap-datepicker.js}"></script>
	<script src="/azxcrm/module/order/dispatchSalesmanDetails.js"
		th:src="@{/azxcrm/module/order/dispatchSalesmanDetails.js}"></script>
</body>
</html>